package com.base;


/**
 * 屏幕分辩率
 */
public class ScreenSize{
    private int screenWidth;
    private int screenHeight;
    public void setScreenWidth(int screenWidth){
        this.screenWidth = screenWidth;
    }
    public void setScreenHeight(int screenHeight){
        this.screenHeight = screenHeight;
    }
    public int getScreenWidth(){
        setScreenWidth((int)java.awt.Toolkit.getDefaultToolkit().getScreenSize().width);
        return screenWidth;
    }
    public int getScreenHeight(){
        setScreenHeight((int)java.awt.Toolkit.getDefaultToolkit().getScreenSize().height);
        return screenHeight;
    }
}
